package cn.schoolwow.workflow.domain.deploy;

/**网关位置类型*/
public enum DeployGatewayPositionType {
    Start(0),
    End(1);

    public int value;

    DeployGatewayPositionType(int value) {
        this.value = value;
    }

    public static DeployGatewayPositionType getDeployGatewayPositionType(int value){
        DeployGatewayPositionType[] deployGatewayPositionTypes = DeployGatewayPositionType.values();
        for(DeployGatewayPositionType deployGatewayPositionType:deployGatewayPositionTypes){
            if(deployGatewayPositionType.value==value){
                return deployGatewayPositionType;
            }
        }
        throw new IllegalArgumentException("网关位置类型不存在!节点类型值:"+value+",允许值[0,1]");
    }
}
